import java.util.Random

val greet = "hello world!"
println(greet::class)
println(greet::class.java)
println()

fun max(a:Int, b:Int): Int {
	return(if(a>=b)a else b)
}
println("max: ${max(a = 1, b = 2)}")
fun max2(a:Int, b:Int) = if(a>=b)a else b
println("max2: ${max(a = 1, b = 2)}")
println()

class Person(val name : String = "No Face", var isMarried: Boolean = false)
val person = Person(isMarried = true, name = "Van Deway")
println(person.name)
println()

class Rectangle(var width : Int = 1, var heigth : Int = 1)
{
	var isSquare = this.heigth == this.width
}
println(Rectangle().isSquare)
fun createRectangle(): Rectangle
{
	val random = Random()
	return(Rectangle(width = random.nextInt(), heigth = random.nextInt()))
}
val rect = createRectangle()
println(rect.isSquare)

